From 53509a931998535eb123a600fec0ac18c0f7170a Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 18 Jul 2005 17:01:26 +0000 Subject: [PATCH] Drop wayptc inside waypt_flush. --- gpsbabel/waypt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index 44e9e9ad3..11eb9e849 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -92,7 +92,7 @@ waypt_add(waypoint *wpt) * try to be sure that we have these fields even if just by * copying them from elsewhere. */ - +#if 0 if (wpt->shortname == NULL) { if (wpt->description) { wpt->shortname = xstrdup(wpt->description); @@ -117,6 +117,7 @@ waypt_add(waypoint *wpt) } } } +#endif } void @@ -309,6 +310,7 @@ waypt_flush( queue *head ) QUEUE_FOR_EACH(head, elem, tmp) { waypoint *q = (waypoint *) dequeue(elem); waypt_free(q); + waypt_ct--; } } -- 2.30.2